import { NodeRoot } from "../Base/NodeRoot";
import { NMNode } from "../Base/NodeGraph";
@NMNode
export class WaitTime extends NodeRoot{
    public Time:number;
    private completed=false;
    onEnter(){
        setTimeout(() => {
            this.completed=true;
        }, this.Time*1000);
    }
    onStep(dt){
        return this.completed;
    }
}